package com.yuda.afterexamscore.service.impl;

import com.yuda.afterexamscore.mapper.RankXMapper;
import com.yuda.afterexamscore.service.IRankXService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class IRankXServiceImpl implements IRankXService {

    @Autowired
    private RankXMapper rankXMapper;

    @Override
    public List<Map<String, Object>> getAllSchoolAndSubject() {
        return rankXMapper.getAllSchoolAndSubject();
    }

    @Override
    public int updateSubjectRankOne(Map<String,Object> map) {
        return rankXMapper.updateSubjectRankOne(map);
    }
}
